export const routes = [
  {
    path: "/login",
    component: () => {
      return import("@/views/code/login.vue");
    },
    meta: {
      hidden: true,
      title: "登录",
    },
  },
  {
    path: "/",
    component: () => import("@/layout/index.vue"),
    redirect: "/home",
    name: "Home",
    meta: {
      title: "首页",
    },
    children: [
      {
        path: "/home",
        name: "IndexView",
        component: () => import("@/views/code/index"),
        meta: {
          title: "首页",
          icon: "home",
          class: "app-code",
        },
      },
      {
        path: "/vuln",
        name: "Vuln",
        component: () => import("@/views/code/vuln.vue"),
        meta: {
          title: "恶意代码扫描",
          icon: "alert",
        },
      },
      {
        path: "/sample",
        name: "Sample",
        component: () => import("@/views/code/sample.vue"),
        meta: {
          title: "样本分析",
          icon: "file-protect",
        },
      },
      {
        path: "/system",
        name: "System",
        component: () => import("@/views/system/index.vue"),
        meta: {
          title: "系统管理",
          icon: "setting",
        },
      },
    ],
  },
];
